package commands;

import indexes.BattingIndex;
import indexes.PlayerIDIndex;
import indexes.PlayerNameIndex;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
import java.util.logging.Logger;

import util.BattingDatabaseFile;
import util.DatabaseFile;
import util.PlayerLogger;

import main.PlayerDB;
/**
 * This command signals that it is time to exit.
 * @author bfults (Brian Fults - 905084698)
 *
 */
public class ExitCommand extends Command
{

    /**
     * General constructor.
     * @param args
     */
    public ExitCommand(List<String> args)
    {
        super(args);
    }

    @Override
    public boolean execute(
        PlayerIDIndex idIndex,
        PlayerNameIndex nameIndex,
        PlayerLogger logger,
        DatabaseFile database, BattingIndex battingIndex, BattingDatabaseFile battingDatabase ) throws IOException
    {
        logger.write(super.getDivider());
        logger.write("\nCommand: Exit.\n");
        return false;
    }


}
